extraneous hidden authorid in deletion POST method #39601
Labels
Content:Learn:Express
Learning area Express docs
goal: consistency
(Experimental label) Issues about inconsistent/conflicting/contradictory content.
needs triage
Triage needed by staff and/or partners. Automatically applied when an issue is opened.
MDN URL
https://developer.mozilla.org/en-US/docs/Learn_web_development/Extensions/Server-side/Express_Nodejs/forms/Delete_author_form
What specific section or headline is this issue about?
PUG View and Controller-post route
What information was incorrect, unhelpful, or incomplete?
The code in
author_delete_post()
switches from usingreq.params.id
in the book-list analysis to usingreq.body.authorid
in the final deletion step, but that's unnecessary, due to the way the URL is constructed.in fact the entire hidden parameter in the
author_delete.pug
form seems unnecessary. Perhaps an artifact from a previous version?What did you expect to see?
In the PUG view, I expected
and in the authors controller implementation of
author_delete_post
,Do you have any supporting links, references, or citations?
no
Do you have anything more you want to share?
no
MDN metadata
Page report details
en-us/learn_web_development/extensions/server-side/express_nodejs/forms/delete_author_form
The text was updated successfully, but these errors were encountered: